package com.knowvoyage.knowvoyageserver.pojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "收藏消息实体类")
@Data
public class Favorite {
    private Long favoriteId;

    @NotNull(message = "消息ID不能为空")
    @Positive(message = "消息ID必须为正数")
    private Long messageId;

    @NotNull(message = "用户ID不能为空")
    @Positive(message = "用户ID必须为正数")
    private Long userId;

    private LocalDateTime createTime;
}
